package com.ssy.lingxi.order.api.model.vo.paas;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 平台规则（订单规则）配置
 * @author 万宁
 * @version 2.0.0
 * @date 2021-08-04
 */
public class OrderRuleFeignVO implements Serializable {
    private static final long serialVersionUID = -3782998116948514623L;

    /**
     * 平台规则类型，定义在 PlatformRuleTypeEnum中
     */
    @NotNull(message = "平台规则类型枚举不能为空")
    private Integer ruleType;
    /**
     * 枚举值
     */
    @NotNull(message = "类型枚举不能为空")
    private Integer methodCode;

    /**
     * 类型名称不能为空
     */
    @NotBlank(message = "类型名称不能为空")
    private String methodName;

    /**
     * 状态
     */
    @NotNull(message = "状态不能为空")
    @Min(value = 0, message = "状态：0-停用，1-启用")
    @Max(value = 1, message = "状态：0-停用，1-启用")
    private Integer status;

    public Integer getRuleType() {
        return ruleType;
    }

    public void setRuleType(Integer ruleType) {
        this.ruleType = ruleType;
    }

    public Integer getMethodCode() {
        return methodCode;
    }

    public void setMethodCode(Integer methodCode) {
        this.methodCode = methodCode;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
